package com.zj.authorizationserver.service.impl;

import com.zj.authorizationserver.mbg.mapper.OauthClientDetailsMapper;
import com.zj.authorizationserver.mbg.model.OauthClientDetails;
import com.zj.authorizationserver.mbg.model.OauthClientDetailsExample;
import com.zj.authorizationserver.service.OauthClientDetailsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OauthClientDetailsServiceImpl implements OauthClientDetailsService {
    @Resource
    private OauthClientDetailsMapper oauthClientDetailsMapper;

    @Override
    public long countByExample(OauthClientDetailsExample oauthClientDetailsExample) {
        return oauthClientDetailsMapper.countByExample(oauthClientDetailsExample);
    }

    @Override
    public int deleteByExample(OauthClientDetailsExample oauthClientDetailsExample) {
        return oauthClientDetailsMapper.deleteByExample(oauthClientDetailsExample);
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return oauthClientDetailsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(OauthClientDetails oauthClientDetails) {
        return oauthClientDetailsMapper.insert(oauthClientDetails);
    }

    @Override
    public int insertSelective(OauthClientDetails oauthClientDetails) {
        return oauthClientDetailsMapper.insertSelective(oauthClientDetails);
    }

    @Override
    public List<OauthClientDetails> selectByExample(OauthClientDetailsExample oauthClientDetailsExample) {
        return oauthClientDetailsMapper.selectByExample(oauthClientDetailsExample);
    }

    @Override
    public OauthClientDetails selectByPrimaryKey(String id) {
        return oauthClientDetailsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(OauthClientDetails oauthClientDetails) {
        return oauthClientDetailsMapper.updateByPrimaryKeySelective(oauthClientDetails);
    }

    @Override
    public int updateByExample(OauthClientDetails oauthClientDetails, OauthClientDetailsExample oauthClientDetailsExample) {
        return oauthClientDetailsMapper.updateByExample(oauthClientDetails,oauthClientDetailsExample);
    }

    @Override
    public int updateByExampleSelective(OauthClientDetails oauthClientDetails, OauthClientDetailsExample oauthClientDetailsExample) {
        return oauthClientDetailsMapper.updateByExampleSelective(oauthClientDetails,oauthClientDetailsExample);
    }

    @Override
    public int updateByPrimaryKey(OauthClientDetails oauthClientDetails) {
        return oauthClientDetailsMapper.updateByPrimaryKey(oauthClientDetails);
    }
}